package org.kabeja.dxf.entity;

import org.kabeja.dxf.DXFConstants;
import org.kabeja.dxf.helpers.Point;

/**
 * @author shutao
 * @since 2022/4/25 9:09
 */
public class DXFPoint extends DXFEntity {
    protected Point p = new Point();

    public DXFPoint() {
        this.setLineType(this.getType());
    }

    public DXFPoint(double var1, double var3, double var5) {
        this.p.setX(var1);
        this.p.setY(var3);
        this.p.setZ(var5);
    }

    public DXFPoint(Point var1) {
        this.p = var1;
    }

    public double getX() {
        return this.p.getX();
    }

    public void setX(double var1) {
        this.p.setX(var1);
    }

    public double getY() {
        return this.p.getY();
    }

    public void setY(double var1) {
        this.p.setY(var1);
    }

    public double getZ() {
        return this.p.getZ();
    }

    public void setZ(double var1) {
        this.p.setZ(var1);
    }

    @Override
    public Bounds getBounds() {
        Bounds var1 = new Bounds();
        var1.addToBounds(this.p);
        return var1;
    }

    @Override
    public String getType() {
        return DXFConstants.ENTITY_TYPE_POINT;
    }

    public Point getPoint() {
        return this.p;
    }

    public void setPoint(Point var1) {
        this.p = var1;
    }

    @Override
    public double getLength() {
        return 0.0D;
    }
}
